package com.pingba.serviceImpl.msg;

import com.pingba.dao.BaseDao;
import com.pingba.dao.msg.MsgReplyDao;
import com.pingba.entity.msg.MsgReply;
import com.pingba.service.msg.MsgReplyService;
import com.pingba.service.msg.MsgSendService;
import com.pingba.serviceImpl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2015/11/2 0002.
 */
@Service("MsgReplyService")
public class MsgReplyServiceImpl extends BaseServiceImpl<MsgReply,Long> implements MsgReplyService {
    @Autowired
    MsgReplyDao msgReplyDao;
    @Override
    public BaseDao<MsgReply, Long> getDao() {
        return msgReplyDao;
    }

    @Override
    public void setReplied(MsgReply msgReply) {
        msgReplyDao.setReplied(msgReply);
    }

    @Override
    public void setReaded(MsgReply msgReply) {
        msgReplyDao.setReaded(msgReply);
    }

    @Override
    public List<MsgReply> getUnhandled(Long userId) {
        return msgReplyDao.getUnhandled(userId);
    }
}
